<html>
<head>
    <meta charset="utf-8"/>
    <title>订单详情</title>
    <#include "../common/header.ftl">
</head>
<body>
<div id="wrapper" class="toggled">
<#--sidebar-->
<#include "../common/nav.ftl">
<#--content-->
    <div id="page-content-wrapper">
<div class="container-fluid">
    <div class="row clearfix">
        <div class="col-md-4 column">
            <table class="table table-condensed">
                <thead>
                <tr>
                    <th>
                        订单ID
                    </th>
                    <th>
                        订单总金额
                    </th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>
                        ${orderDTO.orderId}
                    </td>
                    <td>
                        ${orderDTO.getOrderAmount()}
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="col-md-12 column">
            <table class="table">
                <thead>
                <tr>
                    <th>
                        商品ID
                    </th>
                    <th>
                        商品名称
                    </th>
                    <th>
                        价格
                    </th>
                    <th>
                        数量
                    </th>
                    <th>
                        总额
                    </th>
                </tr>
                </thead>
                <tbody>
               <#list orderDTO.getOrderDetailList() as detail>
                   <tr>
                       <td>${detail.productId}</td>
                       <td>${detail.productName}</td>
                       <td>${detail.productPrice}</td>
                       <td>${detail.productQuantity}</td>
                       <td>${detail.productQuantity * detail.productPrice}</td>

                   </tr>
               </#list>
                </tbody>
            </table>
        </div>
        <div class="col-md-12 column">
            <#if orderDTO.getOrderStatusEnum().code==0>
            <a href="/sell/seller/order/finish?orderId=${orderDTO.orderId}" type="button" class="btn btn-primary btn-default">完结订单</a>
            <a href="/sell/seller/order/cancel?orderId=${orderDTO.orderId}" type="button" class="btn btn-default btn-danger">取消订单</a>
            </#if>
        </div>
    </div>
</div>
    </div>
</div>
</body>
</html>